package tabbedCanvas;

import java.awt.BasicStroke;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Stroke;

import javax.swing.JFrame;
import javax.swing.JPanel;

import drawPropertyCommands.GraphicsProperties;



public class Main {
	public static void main(String[] args){
		JFrame frame = new JFrame();
		LayeredCanvas lc = new LayeredCanvas(new Dimension(400,400), 0);
		GraphicsProperties gp = new GraphicsProperties(new BasicStroke(3), Color.BLUE);
		lc.move(0,0,100,100, 180, true, 0, gp);
		lc.move(100,100,0,-100, 180, true, 0, gp);
		lc.move(0,-100, -100,-100, 270, true, 0, gp);
		lc.move(-10,10, -100,100, 315, true, 1, gp);
		lc.move(-100,-100, -100 ,100, 0, true, 0, gp);
        lc.move(-200,-200, 400, 300, 180, true, 2, gp);
        lc.move(400,300, 0, 0, 180, true, 2, gp);
		
		//TurtleLayer tl = new TurtleLayer(new Dimension(400,400));
		//tl.move(0,100,100,45);
		//TrailLayer tl = new TrailLayer(new Dimension(400,400), new BasicStroke());
		//tl.draw(0,0,100,100);
		
		frame.getContentPane().add(lc, BorderLayout.CENTER);
		frame.setVisible(true);
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		frame.pack();
	}
}
